import { _decorator, Canvas, Component, js, Node, ResolutionPolicy, screen, Size, view } from 'cc';
import { UiManager } from './core/modules/ui/UiManager';
import { ResManager } from './core/modules/res/resManager';
const { ccclass, property } = _decorator;


export const G_VIEW_SIZE = new Size(0,0)

@ccclass('GCtr')
export class GCtr extends Component {


    async init(param:{
        canvas2d:Canvas,
    }){
        UiManager.getInstance().init(param.canvas2d);
        ResManager.getInstance().loadBundle("LoginBN",_ =>{
            const LoginEntryClass = js.getClassByName("LoginEntry") as typeof Component;
            this.node.addComponent(LoginEntryClass);
        })
    }

}


